package com.tianji.learning.queryCoursesIdByName;

import com.google.j2objc.annotations.AutoreleasePool;
import com.tianji.api.client.search.SearchClient;
import lombok.RequiredArgsConstructor;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;


public class queryCoursesIdByName {
    @Autowired
    private SearchClient searchClient;

    @Test
    public void test1(){
        List<Long> longs = searchClient.queryCoursesIdByName("课程");
        for(Long item:longs){
            System.out.println("课程id"+item);
        }
    }
}
